package com.hula.onion.book.server.spider.platforms.tuandai;

import org.springframework.stereotype.Component;

/**
 * Description:
 * Create Date:2018/1/18 14:18
 *
 * @author liangbing
 * @version 1.0
 */
@Component
public class TuanDaiResponseEntity<T> {

    /**
     * 错误信息
     */
    private String errorMsg;

    /**
     * 错误码
     */
    private String errorCode;

    /**
     * 是否成功标识
     */
    private boolean isSuccess;

    /**
     * 验证码js url
     */
    private String captchaJsURL;

    /**
     * 成功时存储的数据
     */
    private T t;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getCaptchaJsURL() {
        return captchaJsURL;
    }

    public void setCaptchaJsURL(String captchaJsURL) {
        this.captchaJsURL = captchaJsURL;
    }

    @Override
    public String toString() {
        return "TuanDaiResponseEntity{" +
                "errorMsg='" + errorMsg + '\'' +
                ", errorCode='" + errorCode + '\'' +
                ", isSuccess=" + isSuccess +
                ", captchaJsURL='" + captchaJsURL + '\'' +
                ", t=" + t +
                '}';
    }
}
